JavaScript

{dialog.object}hideRepeatingSectionColumn Method

Syntax

{dialog.object}.hideRepeatingSectionColumn(columnName [, mode]);

Arguments

columnNamestring

The column that you want to either show or hide.

modestring

Default = "hide". Specify whether to 'show' or 'hide' column. Options include:

mode
Description
'show'

Shows the column.

'hide'

Hides the column, including the space occupied by the column.

'visibility_show'

Shows the column.

'visibility_hide'

Hides the column contents, but the column space is retained. Some browsers may not support this behavior.

Description

Hide/show a column in a Repeating Section.

Discussion

The hideRepeatingSectionColumn() method can be used to show or hide a column in a repeating section.

{dialog.object}.hideRepeatingSectionColumn('QUANTITY');

Understanding 'visibility_hide'

There are two mode available for hiding a column: 'hide' and 'visibility_hide'. If 'hide' is used, the entire column is hidden and the space occupied by the column is removed from the layout:

{dialog.object}.hideRepeatingSectionColumn('QTY','hide');
images/hideRepCol2.png

The second mode, 'visibility_hide', hides the column but does not change the repeating section's layout. In other words, the space occupied by the column is still shown:

{dialog.object}.hideRepeatingSectionColumn('QTY','visibility_hide');
images/hideRepCol3.png

If 'visibility_hide' is used to hide a column, you must use 'visibility_show' to display it again:

{dialog.object}.hideRepeatingSectionColumn('QTY','visibility_show');

See Also